{extend name='main'}

{block name="content"}
<div class="think-box-shadow">
    <div class="layui-tab-content">
        <table id="BaseData" data-url="{:sysuri()}" data-target-search="form.form-search"></table>
    </div>
    <table class="layui-table margin-top-10" lay-skin="line" lay-filter="test" style="table-layout:fixed;">
        <thead>
        <tr>
            <th style="width: 5%;">
                <button class="layui-btn layui-btn-xs" data-reload type="button">刷 新</button>
            </th>
            <th style="width: 5%;">
                <a class="layui-btn layui-btn-danger layui-btn-xs" data-action="{:url('export')}" data-csrf="{:systoken('export')}" data-value="id#{$qid}">导出excel</a>
            </th>
        </tr>
        <tr>
            {foreach $keys as $key}
            {if $key == '姓名' || $key == '手机号' || $key == '房屋号'}
            <th width="" style="width: 10%;" class='text-center'>{$key}</th>
            {else}
            <th width="" style=" word-break:break-all;overflow:hidden;" class='text-center'>{$key}</th>
            {/if}
            {/foreach}
        </tr>
        </thead>
        <tbody>

        {foreach $list as $kk=>$vo}
        <tr>
            {foreach $keys as $key}

            {if $key == '姓名' || $key == '手机号' || $key == '房屋号'}
            <td class="text-center" style="width: 10%;">{$vo[$key]|default=""}
            </td>
            {else}
            <td class="text-center" style=" word-break:break-all;overflow:hidden;">{$vo[$key]|default=""}</td>
            {/if}
            {/foreach}
        </tr>
        {/foreach}
        </tbody>
        <script>
            layui.form.render();
        </script>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
<style>
    .table-cell {
        /*line-height: 17px !important;*/
    / / 可根据自己的样式来修改 vertical-align: middle;
        height: auto;
        overflow: visible;
        text-overflow: inherit;
        white-space: normal;
    }
</style>

{/block}